﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using L = Science.Mathematics.LinearAlgebra;

namespace Strang3Ed.Chapter01.Section2
{
    public class Example04
    {
        public Example04()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
        public void Compute()
        {
            L.Vector i = new L.Vector(2);
            i[0] = 1.0;
            i[1] = 0.0;

            L.Vector j = new L.Vector(2);
            j[0] = 0.0;
            j[1] = 1.0;

            L.Vector u = new L.Vector(2);
            u[0] = Math.Cos(2.3);
            u[1] = Math.Sin(2.3);

            result += (i.Length).ToString() + "\r\n";
            result += (j.Length).ToString() + "\r\n";
            result += (u.Length).ToString() + "\r\n";
        }
    }
}
/*
1
1
1
*/

